home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / upstart.postinst < prev    next >
Text File  |  2008-09-29  |  910b  |  45 lines

  1. #!/bin/sh -e
  2. # This script can be called in the following ways:
  3. #
  4. # After the package was installed:
  5. #    <postinst> configure <old-version>
  6. #
  7. #
  8. # If prerm fails during upgrade or fails on failed upgrade:
  9. #    <old-postinst> abort-upgrade <new-version>
  10. #
  11. # If prerm fails during deconfiguration of a package:
  12. #    <postinst> abort-deconfigure in-favour <new-package> <version>
  13. #               removing <old-package> <version>
  14. #
  15. # If prerm fails during replacement due to conflict:
  16. #    <postinst> abort-remove in-favour <new-package> <version>
  17.  
  18.  
  19. # Tell init to re-exec itself
  20. reexec_init()
  21. {
  22.     kill 1 || true
  23. }
  24.  
  25.  
  26. case "$1" in
  27.     configure)
  28.     # On upgrade from a capable upstart version, tell it to re-exec
  29.     if dpkg --compare-versions "$2" ge "0.2.0-1"; then
  30.         reexec_init
  31.     fi
  32.     ;;
  33.  
  34.     abort-upgrade|abort-deconfigure|abort-remove)
  35.     ;;
  36.  
  37.     *)
  38.     echo "$0 called with unknown argument \`$1'" 1>&2
  39.     exit 1
  40.     ;;
  41. esac
  42.  
  43.  
  44. exit 0
  45.